<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Login</title>

        <meta name="layout" content="main"/>
        <script>
        $(document).ready(function() { 
            
            $("#loginForm").submit( function () {
                if($.trim($("#username").val()) == ""){
                    alert("请输入用户名！")
                    return false
                }
                if($.trim($("#password").val()) == ""){
                    alert("请输入密码！")
                    return false
                }
            } );
        });
        </script>
    </head>
    <body>
    <div id="login">
        <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
        </g:if>
        <g:form action="signIn" name="loginForm">
            <input type="hidden" name="targetUri" value="${targetUri}"/>
            <input type="hidden" name="schoolId" value="${schoolId}"/>
            <table class="full">
                <tbody>
                    <tr>
                        <td><label>登录名</label></td>
                        <td><input type="text" id="username" name="username" value="${username}"/></td>
                    </tr>
                    <tr>
                        <td><label>密码</label></td>
                        <td><input type="password" id="password" name="password" value=""/></td>
                    </tr> 
                    <tr>
                        <td/>
                        <td><input type="submit" value="登录"/></td>
                    </tr>
                </tbody>
            </table>
        </g:form>
       </div>
    </body>
</html>
